package authentication.service.impl;

import authentication.mappers.TestClsMapper;
import authentication.repository.TestClsRepository;
import authentication.service.TestClsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/4/20 下午5:05
 * @UpdateDate:
 * @Description:
 */
@Service
@Transactional
public class TestClsServiceImpl implements TestClsService {

    @Autowired
    TestClsRepository testClsRepository;


    @Override
    public List<Map> getAll() {
        return testClsRepository.getAll();
    }

    @Override
    public int insert(Map<String, String> clsAndDoc) {
        return testClsRepository.insert(clsAndDoc);
    }

    @Override
    public int update(Map<String, String> docAndId) {
        return testClsRepository.update(docAndId);
    }

    @Override
    public int insertPayInfo(Map<String, Object> params) {
        return testClsRepository.insertPayInfo(params);
    }

    @Override
    public int insertDeliveryInfo(Map<String, Object> params) {
        return testClsRepository.insertDeliveryInfo(params);
    }


}
